package com.design.pattern.strategy;

/**
 * Created by Administrator on 2016/5/16.
 * 环境对象
 */
public class Context {
    private IStrategy strategy;
    public Context(){
    }

    public void setStrategy(IStrategy strategy){
        this.strategy = strategy;
    }

    public void handle(){
        this.strategy.operate();
    }
}
